﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ProviderCarBody.aspx.cs" Inherits="Provider_CarInsurance_ProviderCarBody"
    Title="Car Body" %>
    
<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <script src="~/controls/CE_Date.js" type="text/javascript"></script>
    <div class="provider_inner">
        <h1>
            Car Body</h1>
        <fieldset>
            <legend></legend>
            <dl>
                <dt>
                    <label>
                        CX Body</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlCXBody" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCXBody_SelectedIndexChanged">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="Cabriolet">Cabriolet</asp:ListItem>
                        <asp:ListItem Value="Convertible">Convertible</asp:ListItem>
                        <asp:ListItem Value="Coupe">Coupe</asp:ListItem>
                        <asp:ListItem Value="Hatchback">Hatchback</asp:ListItem>
                        <asp:ListItem Value="MPV">MPV</asp:ListItem>
                        <asp:ListItem Value="Saloon">Saloon</asp:ListItem>
                        <asp:ListItem Value="Sedan">Sedan</asp:ListItem>
                        <asp:ListItem Value="SUV">SUV</asp:ListItem>
                        <asp:ListItem Value="Wagon">Wagon</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvCXBody" runat="server" ControlToValidate="ddlCXBody"
                        ErrorMessage="Select cx body." Display="Dynamic" ValidationGroup="carbody" InitialValue="-1"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Body Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtBodyCode" runat="server" MaxLength="5"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNCDDiscount" runat="server" ControlToValidate="txtBodyCode"
                        ErrorMessage="Enter body code." Display="Dynamic" ValidationGroup="carbody"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Current Point</label></dt>
                <dd>
                    <asp:TextBox ID="txtPoint" runat="server" MaxLength="2"></asp:TextBox>%
                    <asp:RequiredFieldValidator ID="rfvPoint" runat="server" ControlToValidate="txtPoint"
                        ErrorMessage="Enter point/s." Display="Dynamic" ValidationGroup="carbody"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revPoint" runat="server" ControlToValidate="txtPoint"
                        ErrorMessage="Point is not valid." ValidationGroup="carbody" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
              <dl>
                <dt>
                    <label>
                        Schedule Point Update</label></dt>
                <dd>
                   <asp:RadioButtonList runat="server" ID="rdoEffectivity"  RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="EffectiveWhen">
                   <asp:ListItem Value="Yes">Yes</asp:ListItem>
                   <asp:ListItem Value="No">No</asp:ListItem>                   
                   </asp:RadioButtonList>
                  
                </dd>
            </dl>
            <div id="divNewRate" runat="server" visible="false">
             <dl>
                <dt>
                    <label>
                        Effectivity Date</label></dt>
                <dd>
                   <uc1:usrDate ID="usrEffectivityDate" ValidationGroup="carbody" runat="server" IsNotLessThanToday="true" />
                  
                </dd>
            </dl>
            
             <dl>
                <dt>
                    <label>
                        New Point</label></dt>
                <dd>
                    <asp:TextBox ID="txtNewRate" runat="server" MaxLength="5"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Enter new rate." Display="Dynamic" ValidationGroup="carbody"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Rate is not valid." ValidationGroup="carbody" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            </div>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="carbody"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" runat="server" CssClass="float_btn" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="ibtSubmit_Click" ValidationGroup="carbody" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>
